<template>
  <div>
    <div class="login-container">
      <h1>校园食堂代买餐平台</h1>
      <!-- 用户可以选择的登录类型按钮 -->
      <div class="login-options">
        <router-link to="/admin-login" class="btn">管理员登录</router-link>
        <router-link to="/user-login" class="btn">普通用户登录</router-link>
      </div>
    </div>
  </div>
</template>

<script setup>
// 登录页面不需要导航栏
</script>

<style scoped>
.login-container {
  max-width: 400px;
  animation: fadeIn 0.5s ease-out;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 3rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.login-container:hover {
  box-shadow: var(--hover-shadow);
}

.login-options {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2.5rem 0;
}

.btn {
  min-width: 150px;
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 768px) {
  .login-container {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 2rem auto;
    padding: 2rem;
  }
  
  .login-options {
    flex-direction: column;
    gap: 1rem;
  }
}
</style>
  
 